// 引入http请求
import request from '../utils/request'

export default {
    // 登录
    login: (data) => {
        return request.post('/login', data)
    },
    // 首页数据
    index: () => {
        return request.get('/Index/index')
    },
    // 陪护师列表 订单详情
    h5Companion: (data) => {
        return request.get('/h5/companion', data)
    },
    // 创建订单
    createOrder: (data) => {
        return request.post('/createOrder', data)
    },
    // 订单列表
    orderList: (params) => {
        return request.get('/order/list', { params })
    },
    // 订单详情
    orderDetail: (params) => {
        return request.get('/order/detail', { params })
    }
}